home *** CD-ROM | disk | FTP | other *** search
-
- /*
- *
- * MOS108 : マウスカ-ソルの水平移動範囲指定
- *
- */
-
- #include <stdio.h>
- #include <dos.h>
-
- unsigned int MOS_horizon(signed int x1,signed int x2) {
- union REGS inregs, outregs;
- struct SREGS segregs;
-
- segread(&segregs);
- inregs.x.ax=0x0700;
- inregs.x.dx=x1;
- inregs.x.bx=x2;
- int86x(0x99,&inregs,&outregs,&segregs);
- return (unsigned int)outregs.h.ah;
- }